# 散点图
import matplotlib.pyplot as plt

# 支持中文
plt.rcParams['font.sans-serif'] = ['fangsong']
plt.rcParams['axes.unicode_minus'] = False

# plt.grid() #添加网格
# plt.title("标题") #添加标题
#   weight = [68, 25, 60, 65, 20, 128, 60 , 37, 50]
#   power = [90, 27, 88, 72, 80, 15, 66, 68, 57]
weight = ["刘备", "关羽", "张飞"]
power = [90, 27, 88]

# plt.xlabel("横轴标题")
# plt.ylabel("纵轴标题")

plt.scatter(weight, power, marker='*')
plt.show()
